package cn.ben3.addondsl.model;

import org.springframework.roo.classpath.details.FieldMetadata;
import org.springframework.roo.classpath.details.FieldMetadataBuilder;
import org.springframework.roo.classpath.details.annotations.AnnotationMetadataBuilder;
import org.springframework.roo.model.JavaSymbolName;
import org.springframework.roo.model.JavaType;

import java.util.ArrayList;
import java.util.List;

public class FieldBuilder {
    private FieldMetadataBuilder fb;
    FieldBuilder() {
    }
    FieldBuilder(final String declaredbyMetadataId,
                 final int modifier,
                 final List<AnnotationMetadataBuilder> annotations,
                 final JavaSymbolName fieldName, final JavaType fieldType) {
        fb = new FieldMetadataBuilder(declaredbyMetadataId, modifier, annotations, fieldName, fieldType);

    }

    public FieldMetadataBuilder builder() {
        //todo
        return this.fb;
    }
    public FieldMetadata build() {
        //todo
        return this.fb.build();
    }


}
